package com.qqtech.qquan.mall.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.qqtech.core.common.util.StringUtil;
import com.qqtech.qquan.mall.enums.MallConst;

@SuppressWarnings("serial")
public class MallBrandVo extends MallBrand{
	
	/**
	 * 分类名称
	 */
	private String categoryName;
	
	public String getPathImg() {
		if (StringUtil.isBlank(this.getLogo())) {
			return "";
		}
		return this.getImgHandleDomain() + this.getLogo() + MallConst.IMG_BRAND;
	}
	
	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}
}